package com.steven.concurrent.join;

public class Joining {
	public static void main(String[] args) {
		Sleeper sleepy = new Sleeper("Sleepy", 1500);
		Sleeper grumpy = new Sleeper("Grumpy", 1500000);
		new Joiner("Dopey", sleepy);
		new Joiner("Doc", grumpy);
		grumpy.interrupt(); // join方法可以被interrupt中断
	}
}
